x86_32: Fix build after 20983:94535cc63835
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Feb 2010 08:13:02 +0000 (08:13 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Feb 2010 08:13:02 +0000 (08:13 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/srat.c

index 2060ff78ccf1332f4a19efecfd93df255a5f5be3..b89c58805e0802e8baae1727df6bf76b54e9f6cb 100644 (file)
@@ -114,6 +114,7 @@ static __init void bad_srat(void)
                apicid_to_node[i] = NUMA_NO_NODE;
 }
 
+#ifdef CONFIG_X86_64
 /*
  * A lot of BIOS fill in 10 (= no distance) everywhere. This messes
  * up the NUMA heuristics which wants the local node to have a smaller
@@ -140,7 +141,6 @@ static __init int slit_valid(struct acpi_table_slit *slit)
 /* Callback for SLIT parsing */
 void __init acpi_numa_slit_init(struct acpi_table_slit *slit)
 {
-#ifdef CONFIG_X86_64
        unsigned long mfn;
        if (!slit_valid(slit)) {
                printk(KERN_INFO "ACPI: SLIT table looks invalid. "
@@ -155,8 +155,12 @@ void __init acpi_numa_slit_init(struct acpi_table_slit *slit)
        }
        acpi_slit = mfn_to_virt(mfn);
        memcpy(acpi_slit, slit, slit->header.length);
-#endif
 }
+#else
+void __init acpi_numa_slit_init(struct acpi_table_slit *slit)
+{
+}
+#endif
 
 /* Callback for Proximity Domain -> LAPIC mapping */
 void __init